<!DOCTYPE html>
<html  lang="zh-CN" >
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, maximum-scale=5, viewport-fit=cover">
    <title>Ubuntu/LinuxMint使用微信和输入框乱码问题修复 | 学为我用</title>
    <meta name="description" content="LinuxMint&#x2F;Ubuntu 下超简单安装微信 QQ 等 Wine 软件的方法： 安装第一步，在终端中使用如下命令，添加软件仓库并自动刷新缓存： 1wget -O- https:&#x2F;&#x2F;deepin-wine.i-m.dev&#x2F;setup.sh | sh  软件仓库添加完毕，会提示使用 apt 命令即可安装微信、QQ 了，与安装 Linux 原生软件一样 第二步，在终端中使用 apt 命令安装微信、">
<meta property="og:type" content="article">
<meta property="og:title" content="Ubuntu&#x2F;LinuxMint使用微信和输入框乱码问题修复">
<meta property="og:url" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/index.html">
<meta property="og:site_name" content="学为我用">
<meta property="og:description" content="LinuxMint&#x2F;Ubuntu 下超简单安装微信 QQ 等 Wine 软件的方法： 安装第一步，在终端中使用如下命令，添加软件仓库并自动刷新缓存： 1wget -O- https:&#x2F;&#x2F;deepin-wine.i-m.dev&#x2F;setup.sh | sh  软件仓库添加完毕，会提示使用 apt 命令即可安装微信、QQ 了，与安装 Linux 原生软件一样 第二步，在终端中使用 apt 命令安装微信、">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/p_1.png">
<meta property="og:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/p_2.png">
<meta property="article:published_time" content="2020-08-29T09:08:23.000Z">
<meta property="article:modified_time" content="2021-07-06T04:08:48.845Z">
<meta property="article:author" content="章瑱彬">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/p_1.png">

    
    <link rel="icon" href="/zzbomb/images/favicon_128.ico" type="image/x-icon">

    
<link rel="stylesheet" href="/zzbomb/css/common.min.css">



    
    
    
    
        <link href="//cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/css/lightgallery.min.css" rel="stylesheet">
    
    
    
<link rel="stylesheet" href="/zzbomb/css/iconfont.min.css">

    
<meta name="generator" content="Hexo 4.2.1"></head>

    <body>
        <header class="header header-fixture">
    <div class="profile-search-wrap flex sm:block">
        
        
        <div class="profile sm:text-center md:px-1 lg:px-3 sm:pb-4 sm:pt-6">
            <a id="avatar" role="link" href="https://gitee.com/123zhangzhenbin" class="inline-block lg:w-16 lg:h-16 w-8 h-8 m-2" target="_blank" rel="noopener" rel="noreferrer" >
                <img src="/zzbomb/images/g.jpg" class="rounded-full" alt="avatar">
            </a>
            <h2 id="name" class="hidden lg:block">ZZB</h2>
            <h3 id="title" class="hidden xl:block">Java，大数据，人工智能，区块链</h3>
            
            <small id="location" class="hidden lg:block">
                <i class="iconfont icon-map-icon"></i>
                DongGuan, China
            </small>
            
        </div>
        
        
<div class="search flex-1 flex lg:inline-block sm:hidden lg:px-4 lg:mt-2 lg:mb-4 lg:w-full">
    <form id="search-form" class="my-auto flex-1 lg:border lg:border-solid lg:border-gray-200">
        <div class="input-group table bg-gray-100 lg:bg-white w-full">
            <input id="search-input" type="text" placeholder="搜索" class="inline-block w-full bg-gray-100 lg:bg-white">
            <span class="table-cell">
                <button name="search tigger button" disabled>
                    <i class="iconfont icon-search m-2"></i>
                </button>
            </span>
        </div>
    </form>
        
<script id="search-teamplate" type="text/html" data-path="/zzbomb/content.json">
    <div>
        <div class="search-header bg-gray-400">
            <input id="actual-search-input" model="keyword" ref="input" class="inline-block w-full h-10 px-2 py-1" placeholder="搜索" type="text">
        </div>
        <div class="search-result bg-gray-200">
            {{#each searchPosts}}
            <a href="/{{ path }}" class="result-item block px-2 pb-3 mb-1 pt-1 hover:bg-indigo-100">
                <i class="iconfont icon-file"></i>
                <h1 class="result-title inline font-medium text-lg">{{ title }}</h1>
                <p class="result-content text-gray-600 text-sm">{{{ text }}}</p>
            </a>
            {{/each}}
        </div>
    </div>
</script>

</div>


        <button name="menu toogle button" id="menu-toggle-btn" class="block sm:hidden p-3" role="button" aria-expanded="false">
            <i class="iconfont icon-hamburger"></i>
        </button>
    </div>
    <nav id="menu-nav" class="hidden sm:flex flex-col">
        
        
            <div class="menu-item menu-home" role="menuitem">
                <a href="/zzbomb/.">
                    <i class="iconfont icon-home" aria-hidden="true"></i>
                    <span class="menu-title">首页</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-archives" role="menuitem">
                <a href="/zzbomb/archives">
                    <i class="iconfont icon-archive" aria-hidden="true"></i>
                    <span class="menu-title">归档</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-categories" role="menuitem">
                <a href="/zzbomb/categories">
                    <i class="iconfont icon-folder" aria-hidden="true"></i>
                    <span class="menu-title">分类</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-tags" role="menuitem">
                <a href="/zzbomb/tags">
                    <i class="iconfont icon-tag" aria-hidden="true"></i>
                    <span class="menu-title">标签</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-repository" role="menuitem">
                <a href="/zzbomb/repository">
                    <i class="iconfont icon-project" aria-hidden="true"></i>
                    <span class="menu-title">项目</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-links" role="menuitem">
                <a href="/zzbomb/links">
                    <i class="iconfont icon-friend" aria-hidden="true"></i>
                    <span class="menu-title">友链</span>
                </a>
            </div>
        
        
            <div class="menu-item menu-about" role="menuitem">
                <a href="/zzbomb/about">
                    <i class="iconfont icon-cup" aria-hidden="true"></i>
                    <span class="menu-title">关于</span>
                </a>
            </div>
        
        
<div class="social-links flex sm:flex-col lg:hidden mt-5">
    
        <span class="social-item text-center">
            <a href="https://gitee.com/123zhangzhenbin" target="_blank" rel="noopener">
                <i class="iconfont social-icon icon-github"></i>
                <span class="menu-title hidden lg:inline">menu.github</span>
            </a>
        </span>
    
</div>


    </nav>
</header>

        <section class="main-section">
            
    <main class="flex-1 px-4 py-12 md:px-5 lg:px-8 lg:py-4 relative min-h-screen">
    

    <article class="content article article-archives article-type-list" itemscope="">
        <header class="article-header">
            
    
        <h1 class="article-title text-lg" itemprop="name">
            Ubuntu/LinuxMint使用微信和输入框乱码问题修复
        </h1>
    



            <p class="article-meta mb-3 text-xs">
                <span class="article-date">
    <i class="iconfont icon-calendar-check"></i>
	<a href="/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/" class="article-date">
	  <time datetime="2020-08-29T09:08:23.000Z" itemprop="datePublished">8月 29</time>
	</a>
</span>

                

                
    <span class="article-tags">
    <i class="iconfont icon-tag"></i>
    <a class="article-tag-link" href="/zzbomb/tags/linux/" rel="tag">linux</a>
  </span>


                <span class="_partial/post-comment"><i class="icon icon-comment"></i>
                    <a href="/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/#comments" class="article-comment-link">
                        评论
                    </a>
                </span>
                

            </p>
        </header>
        <div class="marked-body article-body">
            <p>LinuxMint/Ubuntu 下超简单安装微信 QQ 等 Wine 软件的方法：</p>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><p>第一步，在终端中使用如下命令，添加软件仓库并自动刷新缓存：</p>
<figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs vim">wget -O- http<span class="hljs-variable">s:</span>//deepin-wine.i-<span class="hljs-keyword">m</span>.dev/setup.<span class="hljs-keyword">sh</span> | <span class="hljs-keyword">sh</span><br></code></pre></td></tr></table></figure>

<p>软件仓库添加完毕，会提示使用 apt 命令即可安装微信、QQ 了，与安装 Linux 原生软件一样</p>
<p>第二步，在终端中使用 apt 命令安装微信、QQ 等软件，以下以微信为例。安装其他软件只需使用相应的软件名称即可。</p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs css"><span class="hljs-selector-tag">sudo</span> <span class="hljs-selector-tag">apt-get</span> <span class="hljs-selector-tag">install</span> <span class="hljs-selector-tag">deepin</span><span class="hljs-selector-class">.com</span><span class="hljs-selector-class">.wechat</span><br></code></pre></td></tr></table></figure>

<h2 id="deepin-wine应用列表"><a href="#deepin-wine应用列表" class="headerlink" title="deepin-wine应用列表"></a>deepin-wine应用列表</h2><p>可以通过以下命令获取</p>
<figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs vim">apt <span class="hljs-keyword">list</span>|<span class="hljs-keyword">grep</span> deepin<br></code></pre></td></tr></table></figure>
<p><img src="/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/p_1.png" alt="5"></p>
<h2 id="解决wine应用乱码问题"><a href="#解决wine应用乱码问题" class="headerlink" title="解决wine应用乱码问题"></a>解决wine应用乱码问题</h2><p>wine应用乱码一般是语言区域设置问题，或者是中文字体的问题</p>
<h3 id="语言区域设置"><a href="#语言区域设置" class="headerlink" title="语言区域设置"></a>语言区域设置</h3><p>如果安装的系统LANG不为zh-CN，那么wine运行程序的默认语种也不会是中文，这可能导致一部分乱码。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">vi /opt/deepinwine/tools/run.sh<br><span class="hljs-comment"># 找到WINE_CMD</span><br><span class="hljs-comment"># 修改为：</span><br>WINE_CMD=<span class="hljs-string">"LC_ALL=zh_CN.UTF-8 deepin-wine"</span><br></code></pre></td></tr></table></figure>

<h3 id="使用通用字体微软雅黑"><a href="#使用通用字体微软雅黑" class="headerlink" title="使用通用字体微软雅黑"></a>使用通用字体微软雅黑</h3><p>下载字体</p>
<blockquote>
<p>下载地址一：蓝奏云 （推荐）<a href="https://www.lanzous.com/i5wivmd" target="_blank" rel="noopener">https://www.lanzous.com/i5wivmd</a><br>下载地址二：百度网盘 链接: <a href="https://pan.baidu.com/s/1rkjkmGJlpdaijCEWi7TZIw" target="_blank" rel="noopener">https://pan.baidu.com/s/1rkjkmGJlpdaijCEWi7TZIw</a> 提取码: btxw</p>
</blockquote>
<p>将下载的字体解压，然后：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 1、拷贝字体</span><br>cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts/<br><span class="hljs-comment"># 企业微信</span><br>cp msyh.ttc ~/.deepinwine/Deepin-WXWork/drive_c/windows/Fonts/<br><br><span class="hljs-comment"># 2、修改注册表</span><br>vi ~/.deepinwine/Deepin-WeChat/system.reg<br><br><span class="hljs-comment"># 更改以下两行内容为：</span><br><br><span class="hljs-string">"MS Shell Dlg"</span>=<span class="hljs-string">"msyh"</span><br><span class="hljs-string">"MS Shell Dlg 2"</span>=<span class="hljs-string">"msyh"</span><br><br><span class="hljs-comment"># 3、字体注册</span><br>vi /home/zzb/.deepinwine/msyh_config.reg<br><br><span class="hljs-comment"># 追加内容</span><br>REGEDIT4<br>[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]<br><span class="hljs-string">"Lucida Sans Unicode"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"Microsoft Sans Serif"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"MS Sans Serif"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"Tahoma"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"Tahoma Bold"</span>=<span class="hljs-string">"msyhbd.ttc"</span><br><span class="hljs-string">"msyh"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"Arial"</span>=<span class="hljs-string">"msyh.ttc"</span><br><span class="hljs-string">"Arial Black"</span>=<span class="hljs-string">"msyh.ttc"</span><br><br><span class="hljs-comment"># 注册</span><br>deepin-wine regedit msyh_config.reg<br></code></pre></td></tr></table></figure>

<p><img src="/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/p_2.png" alt="5"></p>

        </div>
        
<blockquote class="copyright">
    <p><strong>本文链接 : </strong><a class="permalink" href="https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/">https://123zhangzhenbin.gitee.io/zzbomb/2020/08/29/202008291707-ubuntu-use-wechat/</a></p>
    <p><strong>This article is available under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="noopener noreferrer">Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)</a> License</strong></p>
</blockquote>


    </article>
    
    <section id="comments">
        
    </section>


    

</main>


<aside style="" id="sidebar" class="aside aside-fixture">
    <div class="toc-sidebar">
        <nav id="toc" class="article-toc">
            <h3 class="toc-title">文章目录</h3>
            <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#安装"><span class="toc-number">1.</span> <span class="toc-text">安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#deepin-wine应用列表"><span class="toc-number">2.</span> <span class="toc-text">deepin-wine应用列表</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#解决wine应用乱码问题"><span class="toc-number">3.</span> <span class="toc-text">解决wine应用乱码问题</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#语言区域设置"><span class="toc-number">3.1.</span> <span class="toc-text">语言区域设置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#使用通用字体微软雅黑"><span class="toc-number">3.2.</span> <span class="toc-text">使用通用字体微软雅黑</span></a></li></ol></li></ol>
        </nav>
    </div>
</aside>





        </section>
        <footer class="hidden lg:block fixed bottom-0 left-0 sm:w-1/12 lg:w-1/6 bg-gray-100 z-40">
    
    <div class="footer-social-links">
        
            <a href="https://gitee.com/123zhangzhenbin" target="_blank" rel="noopener">
                <i class="iconfont icon-github"></i>
            </a>
        
    </div>
    
    <p style="display: block;text-align: center;font-size: 13px;"><a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16013026号</a></p>
    
        <p class="footer-custom"><a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16013026号</a></p>
        <p class="theme-brand">Theme by <a href="https://github.com/fengkx/hexo-theme-purer" target="_blank" rel="nofollow noopener noreferrer noopener">hexo-theme-purer</a></p>

    
</footer>

        <div id="mask" class="hidden mask fixed inset-0 bg-gray-900 opacity-75 z-40"></div>
        <div id="search-view-container" class="hidden shadow-xl"></div>
        
<script src="/zzbomb/js/dom-event.min.js"></script>

<script src="//cdn.jsdelivr.net/npm/yox@1.0.0-alpha.121/dist/standard/prod/yox.min.js"></script>


<script src="/zzbomb/js/search.min.js"></script>



    <script src="//cdn.jsdelivr.net/npm/lightgallery.js@1.1.3/dist/js/lightgallery.min.js"></script>
    
<script src="/zzbomb/js/light-gallery.min.js"></script>





    </body>
</html>
